package com.javachmapi.service.impl;

import com.javachmapi.dao.IAccountDao;
import com.javachmapi.dao.impl.IAccountDaoImpl;
import com.javachmapi.factory.BeanFactory;
import com.javachmapi.service.IAccountService;

public class IAccountServiceImpl implements IAccountService {

//    private IAccountDao accountDao = new IAccountDaoImpl();

private IAccountDao accountDao = (IAccountDao) BeanFactory.getBean("accountDao");

    /**
     * 模拟保存账户
     */
    public void saveAccount() {
        accountDao.saveAccount();
    }
}
